package com.kuaimacode.kframework.mybatis.models.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户邀请记录表
 * @author anzy
 * @date 2019/03/31
 */
@TableName("user_invite")
@Data
public class UserInvite implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@ApiModelProperty(value = "邀请人")
	@TableField("inviter")
	private Long inviter;
	@ApiModelProperty(value = "邀请时间")
	@TableField("invite_time")
	private Date inviteTime;
	@ApiModelProperty(value = "邀请手机号")
	@TableField("invite_phone")
	private String invitePhone;
	@ApiModelProperty(value = "奖励")
	@TableField("reward")
	private String reward;
	@ApiModelProperty(value = "被邀请人id")
	@TableField("invite_user_id")
	private Long inviteUserId;
	@ApiModelProperty(value = "活动id")
	@TableField("invite_id")
	private Long inviteId;
}
